package com.dz51.module.common;

/**
 * 整个应用通用的常量 <br>
 * <b>类描述:</b>
 * 
 * @see
 * @since
 */
public class Constants {
	/**
	 * 邮箱验证
	 */
	public static final String EMAILREGULAR = "^((([a-z]|\\d|[!#\\$%&'\\*\\+\\-\\/=\\?\\^_`{\\|}~]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])+(\\.([a-z]|\\d|[!#\\$%&'\\*\\+\\-\\/=\\?\\^_`{\\|}~]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])+)*)|((\\x22)((((\\x20|\\x09)*(\\x0d\\x0a))?(\\x20|\\x09)+)?(([\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x7f]|\\x21|[\\x23-\\x5b]|[\\x5d-\\x7e]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(\\\\([\\x01-\\x09\\x0b\\x0c\\x0d-\\x7f]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]))))*(((\\x20|\\x09)*(\\x0d\\x0a))?(\\x20|\\x09)+)?(\\x22)))@((([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])*([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])))\\.)+(([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])*([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])))$";
	/**
	 * 真实名称,只包含中文、英文
	 */
	public static final String TRUENAME = "(^([a-zA-Z ]+|[\u4e00-\u9fa5]+)$)";
	/**
	 * 特殊字符
	 */
	public static final String SPECIALCHAR = "^([^`~!@$^&':;,?~！……&；：。，、？=]).*";
	/**
	 * 手机验证
	 */
	public static final String PHONEREGULAR = "(^1[3,4,5,7,8]{1}[0-9]{9}$)";

	public static final String TELREGULAR = "(^[0-9]{3,4}\\-[0-9]{7,8}$)|(^[0-9]{7,8}$)|(^[0-9]{3,4}\\-[0-9]{7,8}\\-[0-9]{3,5}$)|(^[0-9]{7,8}\\-[0-9]{3,5}$)|(^\\([0-9]{3,4}\\)[0-9]{7,8}$)|(^\\([0-9]{3,4}\\)[0-9]{7,8}\\-[0-9]{3,5}$)|(^1[3,4,5,7,8]{1}[0-9]{9}$)";

	/**
	 * 空格
	 */
	String WHITE_SPACE = "";

	/**
	 * 每页显示的数据量
	 */
	int PAGE_DATA = 10;

	/**
	 * 当前页面属性名
	 */
	String CUR_PAGE_NAME = "curPage";

	/**
	 * 当前
	 */
	String PAGE_DATA_NAME = "pageData";

	/**
	 * 要排序的属性名
	 */
	String ORDER_NAME = "orderName";

	/**
	 * 要排序的方式
	 */
	String ORDER_FLAG = "orderFlag";

	/**
	 * 看是否为数字
	 */
	String NUMBER_REGEX = "^[1-9]\\d*$";

	/**
	 * 默认为第一页
	 */
	int FIRST_PAGE = 1;

	public static final String YYYY_MM_DD = "yyyy-MM-dd";
	public static final String YYYY_MM_DD_HH_MM_SS = "yyyy-MM-dd HH:mm:ss";

	public static final String ONE_STR = "1";
	public static final String TWO_STR = "2";
	public static final String THREE_STR = "3";
	public static final String FOUR_STR = "4";
	public static final String FIVE_STR = "5";
	public static final String SIX_STR = "6";
	public static final String SEVEN_STR = "7";
	public static final String EIGHT_STR = "8";
	public static final String NINE_STR = "9";
	public static final String TEN_STR = "10";
	public static final String ONE_HUNDRED_STR = "100";
	public static final String THREE_HUNDRED_STR = "300";
	public static final String FIVE_HUNDRED_STR = "500";
	public static final String EIGHT_HUNDRED_STR = "800";
	public static final String THOUSAND_STR = "1000";

	public static final int ONE_INT = 1;
	public static final int TWO_INT = 2;
	public static final int THREE_INT = 3;
	public static final int FOUR_INT = 4;
	public static final int FIVE_INT = 5;
	public static final int SIX_INT = 6;
	public static final int SEVEN_INT = 7;
	public static final int EIGHT_INT = 8;
	public static final int NINE_INT = 9;
	public static final int TEN_INT = 10;
	public static final int ONE_HUNDRED_INT = 100;
	public static final int THREE_HUNDRED_INT = 300;
	public static final int FIVE_HUNDRED_INT = 500;
	public static final int EIGHT_HUNDRED_INT = 800;
	public static final int THOUSAND_INT = 1000;

	public static final long ONE_LONG = 1l;
	public static final long TWO_LONG = 2l;
	public static final long THREE_LONG = 3l;
	public static final long FOUR_LONG = 4l;
	public static final long FIVE_LONG = 5l;
	public static final long SIX_LONG = 6l;
	public static final long SEVEN_LONG = 7l;
	public static final long EIGHT_LONG = 8l;
	public static final long NINE_LONG = 9l;
	public static final long TEN_LONG = 10l;
	public static final long ONE_HUNDRED_LONG = 100l;
	public static final long THREE_HUNDRED_LONG = 300l;
	public static final long FIVE_HUNDRED_LONG = 500l;
	public static final long EIGHT_HUNDRED_LONG = 800l;
	public static final long THOUSAND_LONG = 1000l;
}
